<?php
/**
 * Created by PhpStorm.
 * User: godjarvis
 * Date: 2020/08/05
 * Time: 13:10
 */

namespace App\Model\Entity\DangKou;

use Fresh\Mvc\Model\Entity;
use Fresh\Annotation\EntitySetting;

/**
 * @EntitySetting(tableName="client", connection="dangkou")
 */
class Client extends Entity
{
    // 会员0 代理1
    const TYPE_MEMBER = 0;
    const TYPE_AGENT = 1;

    public static function typeText()
    {
        return [
            self::TYPE_MEMBER => '会员',
            self::TYPE_AGENT  => '代理'
        ];
    }
}
